//
//  YourData.swift
//  QRCode
//
//  Created by zzk176 on 12/12/16.
//  Copyright © 2016 zzk176. All rights reserved.
//

import UIKit

//// 模型数据
//class YourData: NSObject {
//    var id:Int!
//    var QRCode:String!
//    var time:String!
//    var avatar:String! = "avatar"
//    var needExcange:String! = "1"  // need
//    // 字典转模型
//    func toValue(data:Dictionary<String, String>){
//        self.QRCode = data[CODE]
//        self.time = data[TIME]
//        self.avatar = data[AVATAR]
//    }
//    
//    // 模型转字典
//    func toDict()->Dictionary<String, String>{
//        let dict = [CODE:QRCode,TIME:time,AVATAR:avatar,NEEDEXCHANGE:needExcange]
//        return dict as! Dictionary<String, String>
//    }
//}

